package com.hand.wfive.adapter;

import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.hand.wfive.R;
import com.hand.wfive.loginAndVip.model.CouponModel;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;

public class VipCouponAdapter extends BaseQuickAdapter<CouponModel, BaseViewHolder> {

    public VipCouponAdapter() {
        super(R.layout.item_vip_coupon);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, CouponModel item) {

        Glide.with(getContext()).load(item.getRetUrl()).into((ImageView) baseViewHolder.getView(R.id.ivCoupon));
//        baseViewHolder.setImageResource(R.id.ivCoupon, R.mipmap.bg_vip_dialog_discount);
    }
}
